import  axios from "../../axios.js"

export default{
  //删除档案管理员或中心
  deleteAPI(data,binding,id)
  {
    return axios({
      url:'/crm/deletetAgreementDepartmentTwo',
      method:'get',
      params:data,
      headers:{
        "binding": binding
      }
    })
  },
  //新增档案管理员/中心
  insertAPI(data,binding){
    return axios({
      url:'/crm/insertAgreementDepartmentTwo',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
  //查询档案管理员/中心信息
  selectAgreementByInsert(data,binding){
    return axios({
      url:'/crm/selectAgreementByInsertTwo',
      method:'get',
      params:data,
      headers:{
        "binding": binding
      }
    })
  },
  //查询档案管理员管理
  selectAgreementDepartment(data,binding){
    return axios({
      url:'/crm/selectAgreementDepartmentTwo',
      method:'get',
      params:data,
      headers:{
        "binding": binding
      }
    })
  },
  // 更换档案管理员
  updateAgreementDepartment(data,binding){
    return axios({
      url:'/crm/updateAgreementDepartmentTwo',
      method:'get',
      params:data,
      headers:{
        "binding": binding
      }
    })
  },
  //更新前的查询
  updateAgreementDepartmentBefore(data,binding){
    return axios({
      url:'/crm/updateAgreementDepartmentBeforeTwo',
      method:'get',
      params:data,
      headers:{
        "binding": binding
      }
    })
  },
};
